﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HammerMUD.Commands;

namespace HammerMUD.Admin
{
    public class EditAreaCommand : Command
    {
        public EditAreaCommand()
        {
            Name = "editarea";
            Help = "editarea name <name>";
            SecurityLevel = SecurityLevel.Admin;
        }

        public override void Do(HammerMUD.System.User from, List<String> arguments)
        {
            if (arguments.Count < 3)
            {
                from.Send(Help);
                return;
            }

            if (arguments[1].Equals("name"))
            {
                from.UserAccount.CurrentCharacter.CurrentRoom.MemberOfArea.Name = arguments[2];
                from.Send("Name of the area changed to " + arguments[2]);
                return;
            }

            from.Send("Sorry, editarea is not yet fully implemented!");
        }
    }
}
